< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03080201.xhp

(section: exp) (bookmark: bm_id3150616)
Exp function

Exp 関数

Exp Function [Runtime]
Exp 関数[実行時](hd_id3150616.1)

Returns the base of the natural logarithm (e = 2.718282) raised to a power.
自然対数の底 (e = 2.718282) を基準に、その指数 (累乗、べき乗) を返します。(par_id3155555.2)

(/section: exp)

Syntax:
構文:(hd_id3150984.3)

Exp (Number)
Exp (Number)(par_id3145315.4)

Return value:
戻り値:(hd_id3154347.5)

Double
倍精度(par_id3149670.6)

Parameters:
パラメータ:(hd_id3154760.7)

Number: Any numeric expression that specifies the power that you want to raise "e" to (the base of natural logarithms). The power must be for both single-precision numbers less than or equal to 88.02969 and double-precision numbers less than or equal to 709.782712893, since Office Basic returns an Overflow error for numbers exceeding these values.
Number: 「e」(自然対数の底) の指数を取る数値。指数の値は、単精度型の場合で 88.02969 以下、倍精度型の場合で 709.782712893 以下とする必要があり、これらの値を超過すると Office Basic はオーバーフローエラーを返します。(par_id3150793.8)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

Example:
例:(hd_id3156280.9)

Sub ExampleLogExp
Sub ExampleLogExp(par_id3153193.10)

Dim dValue as Double
Dim dValue as Double(par_id3125864.11)

const b1=12.345e12
const b1=12.345e12(par_id3145172.12)

const b2=1.345e34
const b2=1.345e34(par_id3159254.13)

dValue=Exp( Log(b1)+Log(b2) )
dValue=Exp( Log(b1)+Log(b2) )(par_id3147287.14)

MsgBox "" & dValue & chr(13) & (b1*b2) ,0,"Multiplication by logarithm"
MsgBox "" & dValue & chr(13) & (b1*b2) ,0,"Multiplication by logarithm"(par_id3161832.15)

end sub
end sub(par_id3151112.16)


< Prev / Next >